package com.skin.finder;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 门那粒沙
 * @create 2021-06-12 21:39
 **/
public class og
{
    private String a;
    private String b;
    private String c;
    private long d;
    private List<String> e;
    private String f;

    public String a()
    {
        return this.a;
    }

    public void a(String paramString)
    {
        this.a = paramString;
    }

    public String b()
    {
        return this.b;
    }

    public void b(String paramString)
    {
        this.b = paramString;
    }

    public String c()
    {
        return this.c;
    }

    public void c(String paramString)
    {
        this.c = paramString;
    }

    public long d()
    {
        return this.d;
    }

    public void a(long paramLong)
    {
        this.d = paramLong;
    }

    public List<String> e()
    {
        return this.e;
    }

    public void a(List<String> paramList)
    {
        this.e = paramList;
    }

    public void d(String paramString)
    {
        if ((paramString != null) && (paramString.trim().length() > 0))
        {
            if (this.e == null) {
                this.e = new ArrayList();
            }
            this.e.add(paramString.trim());
        }
    }

    public String f()
    {
        return this.f;
    }

    public void e(String paramString)
    {
        this.f = paramString;
    }

    public boolean equals(Object paramObject)
    {
        if (paramObject == null) {
            return false;
        }
        if (this == paramObject) {
            return true;
        }
        if (!(paramObject instanceof og)) {
            return false;
        }
        og localog = (og)paramObject;
        if (this.a == null) {
            return false;
        }
        if (this.b == null) {
            return false;
        }
        if (this.c == null) {
            return false;
        }
        if (!this.a.equals(localog.a())) {
            return false;
        }
        if (!this.b.equals(localog.b())) {
            return false;
        }
        if (!this.c.equals(localog.c())) {
            return false;
        }
        if (this.d != localog.d) {
            return false;
        }
        if ((this.e != null) && (localog.e() != null))
        {
            List localList1 = this.e;
            List localList2 = localog.e();
            if (localList1.size() != localList2.size()) {
                return false;
            }
            int i = 0;
            for (int j = localList1.size(); i < j; i++)
            {
                String str1 = (String)localList1.get(i);
                String str2 = (String)localList2.get(i);
                if (!str1.equals(str2)) {
                    return false;
                }
            }
        }
        return true;
    }

    public String toString()
    {
        return f("\r\n");
    }

    public String f(String paramString)
    {
        SimpleDateFormat localSimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append("type=").append(this.a).append(paramString);
        localStringBuilder.append("license=").append(this.b).append(paramString);
        localStringBuilder.append("serial=").append(this.c).append(paramString);
        localStringBuilder.append("expire=").append(localSimpleDateFormat.format(Long.valueOf(this.d))).append(paramString);
        if ((this.e != null) && (!this.e.isEmpty())) {
            for (String str : this.e) {
                localStringBuilder.append("feature=").append(str).append(paramString);
            }
        }
        return localStringBuilder.toString();
    }
}
